﻿/// <reference path="../app.ts" />
/// <reference path='../../typings/angularjs/angular.d.ts'/>
/// <reference path='../../typings/angularjs/angular-resource.d.ts'/>
/// <reference path="../../typings/toastr/toastr.d.ts" />

appRoot.factory('notificationFactory', [function (staticObjects: IStaticObjects) {
    toastr.options.timeOut = 3000;

    return {
        success: function (notificationMessage: string) {
            var message = notificationMessage || "Success";
            toastr.success(message);
        },
        error: function (text, errorMessage) {
            toastr.error(text, errorMessage);
        }
    };
}]);



 